<include file="../header" />
<body class="J_scroll_fixed">
    <script>

        $(document).ready(function() {

            $('a.detail').click(function () {

                var id = $(this).attr("roundId");

                layer.open({

                    type: 2,
                    title: '参与详情',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['90%', '85%'],
                    content: "{:U('product/detail')}&id="+id

                });
            });

            $('a.rank').click(function () {

                var id = $(this).attr("roundId");

                layer.open({

                    type: 2,
                    title: '土豪排行榜',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['90%', '85%'],
                    content: "{:U('product/rank')}&id="+id

                });
            });

        });


    </script>

<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
            <tr>
                <th>商品名称</th>
                <th>价格</th>
                <th>当前轮数</th>
                <th>中奖团长</th>
                <th>中奖人</th>
                <th>结束日期</th>
                <th>参与人次</th>
                <th>团个数</th>
                <th>进度</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.product_name}</td>
                <td>{$vo.price}元</td>
                <td>{$vo.current_round}</td>
                <td>{$vo.group_nickname}</td>
                <td>{$vo.nickname}</td>
                <td>{$vo.end_time}</td>
                <td>{$vo.join_number}</td>
                <td>{$vo.group_number}</td>
                <td>{$vo.progress}%</td>
                <td>
                    <a class="detail" href='javascript:void(0)' roundId="{$vo.round_id}">参与详情</a>
                    <a class="rank" href='javascript:void(0)' roundId="{$vo.round_id}">土豪排行</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>